package com.huatai.saas.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 公告类内容的实体类
 * @program: nanming-saas
 * @author: zcw
 * @create: 2024-04-24 13:55
 */
@Data
@TableName("announcement")
public class AnnouncementEntity implements Serializable {

	private static final long serialVersionUID = 2337754478256580096L;

	/**
	 * 主键id
	 */
	@TableId
	@ApiModelProperty("主键id")
	private Long id;

	/**
	 * 标题
	 */
	@TableField("title")
	@ApiModelProperty("标题")
	private String title;

	/**
	 * 内容
	 */
	@TableField("content")
	@ApiModelProperty("内容")
	private String content;

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime createTime;

	/**
	 * 更新时间
	 */
	@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime updateTime;

}
